public class MethodDemo02 {
    public static void main(String[] args) {
        int c = test1(1, 2);// 调用test1方法
        System.out.println(c);
    }


    public static int test1(int a, int b) {
        return test2(a, b);

    }

    public static int test2(int a, int b) {
        return test3(a, b);

    }

    public static int test3(int a, int b) {
        System.out.println("test3");
        return a + b;
    }


}
